import 'package:car_map/page/res/gaps.dart';
import 'package:car_map/page/res/styles.dart';
import 'package:flutter/material.dart';

///广场内容  标题和简介说明
class WidgetRealNameTitleCount extends StatelessWidget {
  final String title;
  final String contextValue;

  const WidgetRealNameTitleCount({Key key, this.title, this.contextValue})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      padding: EdgeInsets.only(top: 5.0,bottom: 5.0),
      alignment: Alignment.centerLeft,
      decoration: BoxDecoration(
        border: Border(
          bottom: BorderSide(
            color: Colors.black12,
            width: 0.5
          )
        )
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        mainAxisAlignment: MainAxisAlignment.start,
        children: <Widget>[
          Text(
            '${title}',
            style: TextStyles.textBold16,
          ),
          Gaps.vGap10,
          Text(
            contextValue,
            style: TextStyles.textGray14,
          ),
          Gaps.vGap10,
        ],
      ),
    );
  }
}
